package com.cuotigou.mapper;

import com.cuotigou.pojo.SKnowledge;

import java.util.List;
import java.util.Map;

public interface SKnowledgeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SKnowledge record);

    int insertSelective(SKnowledge record);

    SKnowledge selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SKnowledge record);

    int updateByPrimaryKey(SKnowledge record);
    //根据课程查询知识点
    List<SKnowledge> selectKnowledgeListBySubjectMap(Map<String,Object> map);
    //查询用户收藏的知识点
    List<SKnowledge> selectKnowledgeListByUserId(Integer userId);
}